//
//  ExchangeStarCollectionViewCell.m
//  Koizora
//
//  Created by dlios on 15-6-9.
//  Copyright (c) 2015年 CupCat. All rights reserved.
//

#import "ExchangeStarCollectionViewCell.h"



@implementation ExchangeStarCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        self.lable1 = [[UILabel alloc] init];
        [self.contentView addSubview:_lable1];
        
        self.image1 = [[UIImageView alloc] init];
//        _image1.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:_image1];
        
    }
    return self;
}
// 设置布局信息
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _image1.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height - 20);
    
    _lable1.frame = CGRectMake(0, _image1.frame.size.height, self.contentView.bounds.size.width, 20);
    
    
}
@end
